<?php
namespace app\admin\logic;

use think\facade\Request;

class Brand
{
    public static function getWhere()
    {
        $where = [];

        if ( $show = Request::param("if_show")){
            $arr=implode(",",$show);
            $where['if_show']=$arr;
        }


        if ($red = Request::param("recommended")){
            $where['recommended']=$red;
        }

        if (request()->param('brand_logo') && count(request()->post('brand_logo'))==1){
                $where['brand_logo']=request()->param('brand_logo')[0];
        }




        if ($keywords = Request::param('keywords')){
            $where["brand_name"] = $keywords;
        }





        return [
            'where'=>$where
        ];
    }
}
